{% extends 'inquire/base.html' %}

{% block title %}
    流水展示
{% endblock %}

{% block startbody %}
    {#流水展示的显示部分#}
    <div class="container">
        <div class="page-header">
            <h1>流水展示及查询</h1>
        </div>
        <p class="lead">Pin a fixed-height footer to the bottom of the viewport in desktop browsers with this custom
            HTML and CSS. A fixed navbar has been added with <code>padding-top: 60px;</code> on the <code>body &gt;
                .container</code>.</p>
        <p>Back to <a href="#">the default sticky footer</a> minus the navbar.</p>
        <p><a href="{% url 'water_search:water_search_protector' %}">点我点我点我，按流水保管人查询</a></p>
        <p><a href="{% url 'water_search:water_search_date' %}">点我点我点我，按流水时间查询</a></p>
        <p><a href="{% url 'water_search:water_search_period' %}">点我点我点我，按流水时间段展示</a></p>
    </div>

    {#查询结果#}
    <div style="margin: 10px auto;width: 85%;">
        <h3>流水展示：</h3>
        <table class="table table-striped table-bordered table-hover">
            <tr>
                <th>序号</th>
                <th>物资&emsp;&emsp;</th>
                <th>转移地址&emsp;</th>
                <th>保管人&emsp;</th>
                <th>录入人员&emsp;</th>
                <th>单位&emsp;</th>
            </tr>

            {% for a in all_run_water %}
                <tr>
                    <td>{{ forloop.counter }}</td>
                    <td>{{ a.0 }}&emsp;</td>
                    <td>{{ a.1 }}&emsp;</td>
                    <td>{{ a.2 }}&emsp;</td>
                    <td>{{ a.3 }}&emsp;</td>
                    <td>{{ a.4 }}&emsp;</td>
                </tr>
            {% empty %}
                <tr>
                    <td colspan="5">无流水</td>
                </tr>
            {% endfor %}
        </table>
    </div>
{% endblock %}
